package com.qys.livesMall.shop.modal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 *
 * </p>
 *
 * @author
 * @since 2023-06-06
 */
@Data
@TableName("h2_shop_purchase_sku")
@Schema(name = "ShopPurchaseSku", description = "")
public class ShopPurchaseSku implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @Schema(description = "商品id")
    private Long goodsId;

    @Schema(description = "SKU_ID")
    private Long skuId;

    @Schema(description = "订单ID")
    private Long orderId;

    @Schema(description = "商品名称")
    private String name;

    @Schema(description = "单价")
    private BigDecimal price;

    @Schema(description = "单价(优惠后)")
    private BigDecimal actualPrice;

    @Schema(description = "数量")
    private Integer num;

    @Schema(description = "总金额（原价）")
    private BigDecimal money;

    @Schema(description = "总金额(实付)")
    private BigDecimal actualPayAmount;


    @Schema(description = "图片地址")
    private String image;
    @Schema(description = "shopId")
    private String shopId;
    @Schema(description = "交易单号")
    private String businessNo;
}
